Practical expressions to get insights into your model content
NOTE: The OCL Expressions below can only be executed in the MDriven Designer Model Debugger.
All ViewModels that have at least one action that shows it:
Span.allinstances->select(span|span.ShowByActions->notEmpty)->collect(span|span.Name,span.Class.Name,span.Category.Name,span.ShowByActions.ListPresentationTypedDetails->ascommalist,span.CodeComment)
All actions that navigate to another view:
AbstractAction.allinstances->select(aa|aa.BringUpViewModel->notEmpty)->collect(aa|aa.Name,aa.OclType.asstring,aa.ListPresentationTypedDetails,aa.MenuGroup.Name,aa.ViewModelIsModal,aa.ViewModelIsPopUp)
All serverside ViewModels:
Span.allinstances->select(span|span.ShowByActions->isempty and span.CriteriaForServerSideExecute->notempty) ->collect(span|span.Name,span.Class.Name,span.Category.Name,span.CodeComment)
All ViewModels that have the ReportName column - indicating that they are a template for OpenDocument reports:
Span.allinstances->select(span|span.OwnedColumns->exists(c|c.Name='ReportFileName')) ->collect(span|span.Name,span.Class.Name,span.Category.Name,span.OwnedColumns->select(c|c.Name='ReportFileName')->first.Expression,span.CodeComment)
All actions that do not navigate - meaning they do something else - like change data:
AbstractAction.allinstances->select(aa|aa.BringUpViewModel->isEmpty)->collect(aa|aa.Name,aa.OclType.asstring,aa.ListPresentationTypedDetails,aa.MenuGroup.Name,aa->safecast(ContextAction).ViewModelContext.Name,aa->safecast(ClassAction).ClassToPerformActionOn.Name,aa.AreYouSureQuestion)
This page was edited 143 days ago on 07/01/2024. What links here